import java.util.Scanner;

public class 结婚 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入小王的性别：");
        String xw = scanner.next();
        System.out.println("请输入小张的性别：");
        String xz = scanner.next();
        if(xw.equals(xz)){
            System.out.println("对不起，你们不能结婚！");
        }else{
            System.out.println("恭喜，你们可以结婚！");
        }
    }
}
